import request from "@/utils/request";

let api = {};
api.getAllUser = data => {
    return request({
        url: "back/account/findLimitAll",
        method: "post",
        data: data
    });
}

api.sendDiscountToAccount = data => {
    return request({
        url: "back/sendDiscountToAccount",
        method: "post",
        data: data
    });
}

api.updateu_integral = data => {
    return request({
        url: "back/updateintegral",
        method: "post",
        data: data
    });
};
api.deleteUser = data => {
    return request({
        url: "admin/deleteUserById",
        method: "post",
        data: data
    });
};
api.getmember = data => {
    return request({
        url: "back/member/findAll",
        method: "post",
        data: data
    });
};

api.changeleval = data => {
    return request({
        url: "admin/updateLevel",
        method: "post",
        data: data
    });
};
api.changepassword = data => {
    return request({
        url: "admin/resetPwd",
        method: "post",
        data: data
    });
};

api.changeteamnum = data => {
    return request({
        url: "admin/updateTeamNo",
        method: "post",
        data: data
    });
};
api.looktruenum = data => {
    return request({
        url: "admin/getTeamIsture",
        method: "get",
        data: data
    });
};
api.lookteamnum = data => {
    return request({
        url: "admin/coutUserOfTeam",
        method: "get",
        data: data
    });
};
api.change_teamstatus = data => {
    return request({
        url: "admin/updateTeamIsture",
        method: "post",
        data: data
    });
};
api.congnum = data => {
    return request({
        url: "back/feedback/add",
        method: "post",
        data: data
    });
};
api.getcharge = data => {
    return request({
        url: "back/feedback/findall",
        method: "post",
        data: data
    });
};
api.updatecongnum = data => {
    return request({
        url: "back/feedback/update",
        method: "post",
        data: data
    });
};
api.deletecongnum = data => {
    return request({
        url: "back/feedback/delete",
        method: "post",
        data: data
    });
};
 

export default api;
